package com.zbkj.front.controller;


import com.zbkj.common.model.SpecialTopicCategory;
import com.zbkj.common.result.CommonResult;
import com.zbkj.service.service.SpecialTopicCategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * 专题分类表 前端控制器
 */
@Slf4j
@RestController
@RequestMapping("api/front/special-topic/category")
@Api(tags = "专题分类表")
public class SpecialTopicCategoryController {

    @Autowired
    private SpecialTopicCategoryService specialTopicCategoryService;


    @ApiOperation(value = "获取一级专题分类列表")
    @RequestMapping(value = "/get/first/list", method = RequestMethod.GET)
    public CommonResult<List<SpecialTopicCategory>> getFirstSpecialTopicCategory() {
        return CommonResult.success(specialTopicCategoryService.getFirstSpecialTopicCategory());
    }

}



